import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'shuJuFengXi-'

export default {
  path: '/shuJuFengXi',
  name: 'shuJuFengXi',
  redirect: {
    name: `${pre}xiaoLvFengXi`
  },
  meta: { ...meta, title: '智能分析' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'xiaoLvFengXi',
      name: '16100',
      meta: {
        ...meta,
        title: '效率分析'
      }
      // component: () => import('@/pages/shuJuFengXi/xiaoLvFengXi')
    },
    // {
    //   path: 'luoShaFengXi',
    //   name: `${pre}luoShaFengXi`,
    //   meta: {
    //     ...meta,
    //     title: '落纱分析'
    //   },
    //   // component: () => import('@/pages/shuJuFengXi/luoShaFengXi')
    // },
    {
      path: 'zhiBiaoFengXi',
      name: '16200',
      meta: {
        ...meta,
        title: '指标分析'
      }
      // component: () => import('@/pages/shuJuFengXi/zhiBiaoFengXi')
    },
    {
      path: 'qingShuLianKaiTingFenXi',
      name: '16900',
      meta: {
        ...meta,
        title: '清梳联开停分析'
      }
      // component: () => import('@/pages/shuJuFengXi/qingShuLianKaiTingFenXi')
    },
    {
      path: 'pingZhongDingSuFenXi',
      name: '16800',
      meta: {
        ...meta,
        title: '品种-锭速分析'
      }
      // component: () => import('@/pages/shuJuFengXi/pingZhongDingSuFenXi')
    },
    {
      path: 'duanDingDaiFenXi',
      name: '161400',
      meta: {
        ...meta,
        title: '细纱断锭带分析'
      }
      // component: () => import('@/pages/shuJuFengXi/duanDingDaiFenXi')
    },
    {
      path: 'tingCheBaoGao',
      name: '16300',
      meta: {
        ...meta,
        title: '设备开停车报告'
      }
      // component: () => import('@/pages/shuJuFengXi/tingCheBaoGao')
    },
    {
      path: 'yueXiaoLvFenXi',
      name: '16400',
      meta: {
        ...meta,
        title: '本月效率趋势'
      }
      // component: () => import('@/pages/shuJuFengXi/yueXiaoLvFenXi')
    },
    {
      path: 'nianXiaoLvFenXi',
      name: '16500',
      meta: {
        ...meta,
        title: '本年度效率趋势'
      }
      // component: () => import('@/pages/shuJuFengXi/nianXiaoLvFenXi')
    },
    {
      path: 'guZhangZhenDuan',
      name: '16600',
      meta: {
        ...meta,
        title: '故障诊断'
      }
      // component: () => import('@/pages/shuJuFengXi/guZhangZhenDuan')
    },
    {
      path: 'baoJingTuiSong',
      name: '16700',
      meta: {
        ...meta,
        title: '报警推送'
      }
      // component: () => import('@/pages/shuJuFengXi/baoJingTuiSong')
    },
    {
      path: 'wenShiDuFenXi',
      name: '161000',
      meta: {
        ...meta,
        title: '温湿度分析'
      }
      // component: () => import('@/pages/shuJuFengXi/wenShiDuFenXi')
    },
    {
      path: 'tongXingYiChang',
      name: '161100',
      meta: {
        ...meta,
        title: '通信异常'
      }
      // component: () => import('@/pages/shuJuFengXi/tongXingYiChang')
    },
    {
      path: 'xiShaBaoYangFenXi',
      name: '161200',
      meta: {
        ...meta,
        title: '细纱保养分析'
      }
      // component: () => import('@/pages/shuJuFengXi/xiShaBaoYangFenXi')
    },
    {
      path: 'zhiLiangFenXi/gangSiQuan',
      name: '161310',
      meta: {
        ...meta,
        title: '钢丝圈质量分析'
      }
      // component: () => import('@/pages/shuJuFengXi/zhiLiangFenXi/gangSiQuan')
    },
    {
      path: 'zhiLiangFenXi/liaoJi',
      name: '161320',
      meta: {
        ...meta,
        title: '了机质量分析'
      }
      // component: () => import('@/pages/shuJuFengXi/zhiLiangFenXi/liaoJi')
    },
    {
      path: 'zhiLiangFenXi/weiBao',
      name: '161330',
      meta: {
        ...meta,
        title: '维保质量分析'
      }
      // component: () => import('@/pages/shuJuFengXi/zhiLiangFenXi/weiBao')
    }
  ]
} as AppRouteRecord
